const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('base_matching_cost', {
    rowguid: {
      autoIncrement: true,
      type: DataTypes.BIGINT,
      allowNull: false,
      primaryKey: true,
      comment: "唯一标识"
    },
    xzspCsjcssptfId: {
      type: DataTypes.STRING(100),
      allowNull: true,
      comment: "配套费原信息ID",
      field: 'xzsp_csjcssptf_id'
    },
    projectnum: {
      type: DataTypes.STRING(100),
      allowNull: true,
      comment: "项目编号"
    },
    prjname: {
      type: DataTypes.STRING(200),
      allowNull: true,
      comment: "项目名称"
    },
    paidmoney: {
      type: DataTypes.DECIMAL(14,6),
      allowNull: true,
      comment: "缴纳金额"
    },
    area: {
      type: DataTypes.DECIMAL(14,6),
      allowNull: true,
      comment: "面积"
    },
    belongqx: {
      type: DataTypes.STRING(100),
      allowNull: true,
      comment: "所属辖区"
    },
    buildcorp: {
      type: DataTypes.STRING(200),
      allowNull: true,
      comment: "建设单位"
    },
    corpcode: {
      type: DataTypes.STRING(50),
      allowNull: true,
      comment: "企业统一社会信用代码"
    },
    endtime: {
      type: DataTypes.STRING(50),
      allowNull: true,
      comment: "终止时间"
    },
    isDeleted: {
      type: DataTypes.TINYINT,
      allowNull: true,
      comment: "是否删除",
      field: 'is_deleted'
    },
    createdUser: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "创建人",
      field: 'created_user'
    },
    createdTime: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "本系统创建时间",
      field: 'created_time'
    },
    updatedUser: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "修改人",
      field: 'updated_user'
    },
    updatedTime: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "修改时间",
      field: 'updated_time'
    }
  }, {
    sequelize,
    tableName: 'base_matching_cost',
    timestamps: false,
    indexes: [
      {
        name: "PRIMARY",
        unique: true,
        using: "BTREE",
        fields: [
          { name: "rowguid" },
        ]
      },
    ]
  });
};
